package com.hoshiicloud.fileserver.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 图片处理参数类
 * 
 * @author Mr.wu
 *
 */
@Data
@ApiModel
public class ResizePictureRequest {
	@NotNull
	@ApiModelProperty(value = "obs图片路径")
	private String imgUrl;

	@ApiModelProperty(value = "图片宽度，为0时不处理", example = "0")
	@Min(0)
	private int width;

	@ApiModelProperty(value = "图片高度，为0时不处理", example = "0")
	@Min(0)
	private int height;

	@ApiModelProperty(value = "图片相对质量，为0时不处理", example = "0")
	@Min(0)
	@Max(100)
	private int quality;

	@ApiModelProperty(value = "图片转换目标格式，支持jpg,png,bmp")
	private String targetFormat;


}
